package com.controller;

import com.service.RoomTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author mornd
 * @date 2020/11/30 - 11:19
 */
@Controller
@RequestMapping("/roomType")
public class RoomTypeController {
    @Autowired
    private RoomTypeService roomTypeService;

    /**
     * 查询房型集合
     *
     * @return
     */
    @ResponseBody
    @RequestMapping("/findRoomTypeList")
    public String findRoomTypeByRedis() {
        return roomTypeService.findRoomTypeByRedis();
    }
}
